package com.ruoyi.web.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.GuMrMoneyFlowFullMapper;
import com.ruoyi.web.domain.GuMrMoneyFlowFull;
import com.ruoyi.web.service.IGuMrMoneyFlowFullService;

/**
 * 股票完整资金流向（逐单）Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-24
 */
@Service
public class GuMrMoneyFlowFullServiceImpl implements IGuMrMoneyFlowFullService 
{
    @Autowired
    private GuMrMoneyFlowFullMapper guMrMoneyFlowFullMapper;

    /**
     * 查询股票完整资金流向（逐单）
     * 
     * @param id 股票完整资金流向（逐单）主键
     * @return 股票完整资金流向（逐单）
     */
    @Override
    public GuMrMoneyFlowFull selectGuMrMoneyFlowFullById(String id)
    {
        return guMrMoneyFlowFullMapper.selectGuMrMoneyFlowFullById(id);
    }

    /**
     * 查询股票完整资金流向（逐单）列表
     * 
     * @param guMrMoneyFlowFull 股票完整资金流向（逐单）
     * @return 股票完整资金流向（逐单）
     */
    @Override
    public List<GuMrMoneyFlowFull> selectGuMrMoneyFlowFullList(GuMrMoneyFlowFull guMrMoneyFlowFull)
    {
        return guMrMoneyFlowFullMapper.selectGuMrMoneyFlowFullList(guMrMoneyFlowFull);
    }

    /**
     * 新增股票完整资金流向（逐单）
     * 
     * @param guMrMoneyFlowFull 股票完整资金流向（逐单）
     * @return 结果
     */
    @Override
    public int insertGuMrMoneyFlowFull(GuMrMoneyFlowFull guMrMoneyFlowFull)
    {
        guMrMoneyFlowFull.setCreateTime(DateUtils.getNowDate());
        return guMrMoneyFlowFullMapper.insertGuMrMoneyFlowFull(guMrMoneyFlowFull);
    }

    /**
     * 修改股票完整资金流向（逐单）
     * 
     * @param guMrMoneyFlowFull 股票完整资金流向（逐单）
     * @return 结果
     */
    @Override
    public int updateGuMrMoneyFlowFull(GuMrMoneyFlowFull guMrMoneyFlowFull)
    {
        guMrMoneyFlowFull.setUpdateTime(DateUtils.getNowDate());
        return guMrMoneyFlowFullMapper.updateGuMrMoneyFlowFull(guMrMoneyFlowFull);
    }

    /**
     * 批量删除股票完整资金流向（逐单）
     * 
     * @param ids 需要删除的股票完整资金流向（逐单）主键
     * @return 结果
     */
    @Override
    public int deleteGuMrMoneyFlowFullByIds(String[] ids)
    {
        return guMrMoneyFlowFullMapper.deleteGuMrMoneyFlowFullByIds(ids);
    }

    /**
     * 删除股票完整资金流向（逐单）信息
     * 
     * @param id 股票完整资金流向（逐单）主键
     * @return 结果
     */
    @Override
    public int deleteGuMrMoneyFlowFullById(String id)
    {
        return guMrMoneyFlowFullMapper.deleteGuMrMoneyFlowFullById(id);
    }
}
